namespace Gosubb
{
    partial class Graph3D
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            DeleteDirectxDevice();
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.DxRender3d +=new DxDirect3dDelegate(Graph3D_DxRender3d);
            this.DxLoaded += new DxDirect3dDelegate(Graph3D_DxLoaded);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(Graph3D_KeyDown);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(Graph3D_KeyPress);
            this.DxRender2d += new DxDirect2dDelegate(Graph3D_DxRender2d);
        }

        void Graph3D_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
        {
            switch (e.KeyChar)
            {
                case (char)System.Windows.Forms.Keys.Left:
                    {
                        lookAngleLH -= 3.6F;
                        break;
                    }
                case (char)System.Windows.Forms.Keys.Right:
                    {
                        lookAngleLH += 3.6F;
                        break;
                    }
                case (char)System.Windows.Forms.Keys.Up:
                    {
                        lookAngleUD += 3.6F;
                        break;
                    }
                case (char)System.Windows.Forms.Keys.Down:
                    {
                        lookAngleUD -= 3.6F;
                        break;
                    }
            }
            Graph3D_DxRender3d(this, Dx); 
        }
        private void Graph3D_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
                case System.Windows.Forms.Keys.Left:
                    {
                        lookAngleLH -= 3.6F;
                        break;
                    }
                case System.Windows.Forms.Keys.Right:
                    {
                        lookAngleLH += 3.6F;
                        break;
                    }
                case System.Windows.Forms.Keys.Up:
                    {
                        lookAngleUD += 3.6F;
                        break;
                    }
                case System.Windows.Forms.Keys.Down:
                    {
                        lookAngleUD -= 3.6F;
                        break;
                    }
            }
            Graph3D_DxRender3d(this, Dx);
        }

        #endregion
    }
}
